/* 我的收藏页面样式 */

/* 统一顶部样式 */
#Header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,1);
    border-style: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

#Header .tx-c {
    text-align: center !important;
}

#Header h1 {
    text-align: center !important;
    font-weight: 600;
    font-size: 1.3em;
    letter-spacing: 0.5px;
}

#ScrollContent {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-top: 4.5em;
}

/* 统计卡片 */
.stats-section {
    padding: 2em 1em;
}

.stats-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2em;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.stats-icon {
    width: 4em;
    height: 4em;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
    transition: all 0.3s ease;
}

.stats-icon i {
    font-size: 2em;
    color: #fff;
}

.stats-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.2em;
}

.stats-label {
    font-size: 1.1em;
    color: #7f8c8d;
    font-weight: 500;
}

/* 收藏列表 */
.favorites-list {
    padding: 0 1em 2em 1em;
}

.favorite-item {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    margin-bottom: 1em;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.favorite-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.favorite-item:active {
    transform: translateY(0);
}

.favorite-content {
    padding: 1.5em;
}

.favorite-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 1em;
    overflow: hidden;
    position: relative;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-category {
    position: absolute;
    top: 1em;
    left: 1em;
    background: rgba(255,255,255,0.9);
    color: #667eea;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.favorite-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #95a5a6;
    font-size: 0.9em;
}

.favorite-date {
    display: flex;
    align-items: center;
}

.favorite-date i {
    margin-right: 0.5em;
}

.favorite-actions {
    display: flex;
    align-items: center;
    gap: 1em;
}

.favorite-action {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5em;
    border-radius: 50%;
}

.favorite-action:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.favorite-action.remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* 空状态 */
.empty-state {
    padding: 4em 2em;
    text-align: center;
}

.empty-icon {
    width: 6em;
    height: 6em;
    border-radius: 50%;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2em auto;
    opacity: 0.6;
}

.empty-icon i {
    font-size: 3em;
    color: #fff;
}

.empty-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 0.5em;
}

.empty-desc {
    font-size: 1em;
    color: #95a5a6;
    margin-bottom: 2em;
    line-height: 1.5;
}

.empty-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 1em 2em;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.empty-btn i {
    margin-right: 0.5em;
}

/* 加载动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorite-item {
    animation: slideInUp 0.6s ease;
}

.favorite-item:nth-child(1) { animation-delay: 0.1s; }
.favorite-item:nth-child(2) { animation-delay: 0.2s; }
.favorite-item:nth-child(3) { animation-delay: 0.3s; }
.favorite-item:nth-child(4) { animation-delay: 0.4s; }

/* 响应式设计 */
@media (max-width: 480px) {
    .stats-section {
        padding: 1.5em 0.5em;
    }
    
    .stats-card {
        padding: 1.5em;
    }
    
    .favorites-list {
        padding: 0 0.5em 2em 0.5em;
    }
    
    .favorite-content {
        padding: 1em;
    }
    
    .favorite-image {
        height: 150px;
    }
    
    .empty-state {
        padding: 3em 1em;
    }
} 